﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenExpressApp.MetaAttribute;
using System.Windows.Media;
using System.Reflection;

namespace OpenExpressApp
{
    /// <summary>
    /// 属性的视图模型
    /// </summary>
    public interface IEntityPropertyViewInfo : IPropertyViewInfo
    {
        /// <summary>
        /// 这个视图的属性信息
        /// </summary>
        new IEntityPropertyInfo PropertyInfo { get; }
        /// <summary>
        /// 标记的ReadOnlyAttribute
        /// </summary>
        IsReadOnlyAttribute IsReadOnlyAttribute { get; }
        /// <summary>
        /// 标记的LookupAttribute
        /// </summary>
        LookupAttribute LookupAttribute { get; }

        /// <summary>
        /// 使用的编辑器的名字
        /// </summary>
        string EditorName { get; }
        /// <summary>
        /// 是否显示为这个类型的标题
        /// </summary>
        bool IsTitle { get; }
        /// <summary>
        /// 是否标记了LookupAttribute
        /// </summary>
        bool IsLookup { get; }
        /// <summary>
        /// 是否显示在Lookup列表中
        /// </summary>
        bool ShowInLookup { get; }
        /// <summary>
        /// 是否显示在列表中
        /// </summary>
        bool ShowInList { get; }
        /// <summary>
        /// 是否显示在详细界面中
        /// </summary>
        bool ShowInDetail { get; }
    }
}